cargo.git
8 years agoAuto merge of #4010 - jonhoo:better-incremental-nightly-test, r=alexcrichton
bors [Tue, 9 May 2017 15:35:20 +0000 (15:35 +0000)]
Auto merge of #4010 - jonhoo:better-incremental-nightly-test, r=alexcrichton

Bring test of nightly in line with tests

#4000 passes `-Zincremental` to `rustc` only on nightly, but uses a different mechanism for detecting nightly than [cargotest does](https://github.com/rust-lang/cargo/blob/9bf9bddd9297cfb5098be6146d85be551c6d4eff/tests/cargotest/lib.rs#L37). This PR brings the two in line, which should hopefully fix the build failure observed in https://github.com/rust-lang/rust/pull/41830#issuecomment-300052969.

8 years agoBring test of nightly in line with tests
Jon Gjengset [Tue, 9 May 2017 03:44:41 +0000 (23:44 -0400)]
Bring test of nightly in line with tests

8 years agoAuto merge of #3974 - mcgoo:build_rs_native_path, r=alexcrichton
bors [Mon, 8 May 2017 21:11:30 +0000 (21:11 +0000)]
Auto merge of #3974 - mcgoo:build_rs_native_path, r=alexcrichton

fix dynamic search path for build scripts

fixes https://github.com/rust-lang/cargo/issues/3957

8 years agofix dynamic library search path for build scripts
Jim McGrath [Tue, 2 May 2017 15:34:29 +0000 (10:34 -0500)]
fix dynamic library search path for build scripts

Make dynamic library search path handling for build scripts mirror the
behaviour for cargo run etc. -L paths are taken and stripped of the
native= and similar prefixes and added to the dynamic library search
path if they are inside the target dir.
Resolves https://github.com/rust-lang/cargo/issues/3957

8 years agoAuto merge of #4008 - alexcrichton:update-ssh, r=alexcrichton
bors [Mon, 8 May 2017 16:16:30 +0000 (16:16 +0000)]
Auto merge of #4008 - alexcrichton:update-ssh, r=alexcrichton

Update libssh2-sys

It now has an updated initialization routine to hopefully get ssh working on
Windows, with a fix for alexcrichton/git2-rs#202

8 years agoUpdate libssh2-sys
Alex Crichton [Mon, 8 May 2017 16:15:41 +0000 (09:15 -0700)]
Update libssh2-sys

It now has an updated initialization routine to hopefully get ssh working on
Windows, with a fix for alexcrichton/git2-rs#202

8 years agoAuto merge of #3998 - fantoine:patch-1, r=alexcrichton
bors [Mon, 8 May 2017 14:48:01 +0000 (14:48 +0000)]
Auto merge of #3998 - fantoine:patch-1, r=alexcrichton

Ignore malformed manifests on git dependencies

Fix for #3935

8 years agoAuto merge of #3999 - kureuil:cratesio-676, r=alexcrichton
bors [Sun, 7 May 2017 18:03:51 +0000 (18:03 +0000)]
Auto merge of #3999 - kureuil:cratesio-676, r=alexcrichton

Document new behavior of crates.io with the documentation field of the manifest

[crates.io](https://crates.io/) now automatically links a crate with its [docs.rs](https://docs.rs/) page if no documentation link was specified in the manifest.

See rust-lang/crates.io#676

8 years agoAuto merge of #4000 - jonhoo:only-incremental-on-nightly, r=alexcrichton
bors [Sun, 7 May 2017 16:24:48 +0000 (16:24 +0000)]
Auto merge of #4000 - jonhoo:only-incremental-on-nightly, r=alexcrichton

Only pass -Zincremental to nightly rustc.

`-Z` can only be used on nightly builds; other builds complain loudly. Since incremental builds only work on nightly anyway, we should silently ignore `CARGO_INCREMENTAL` on anything but nightly. This allows users to always have `CARGO_INCREMENTAL` set without getting unexpected errors on stable/beta builds.

Fixes #3835.

8 years agoOnly pass -Zincremental to nightly rustc.
Jon Gjengset [Sat, 6 May 2017 22:31:10 +0000 (18:31 -0400)]
Only pass -Zincremental to nightly rustc.

Fixes #3835

8 years agoAdded test
Fabien Antoine [Sat, 6 May 2017 12:44:41 +0000 (14:44 +0200)]
Added test

8 years agoRefactorized code
Fabien Antoine [Sat, 6 May 2017 10:41:26 +0000 (12:41 +0200)]
Refactorized code

8 years agoAuto merge of #3996 - alexcrichton:rustup-up, r=alexcrichton
bors [Sat, 6 May 2017 05:04:53 +0000 (05:04 +0000)]
Auto merge of #3996 - alexcrichton:rustup-up, r=alexcrichton

Upgrade rustup used on AppVeyor

8 years agoDocument new behavior of crates.io with the documentation field of the manifest
Louis Person [Fri, 5 May 2017 20:50:01 +0000 (22:50 +0200)]
Document new behavior of crates.io with the documentation field of the manifest

8 years agoUpgrade rustup used on AppVeyor
Alex Crichton [Thu, 4 May 2017 21:50:57 +0000 (14:50 -0700)]
Upgrade rustup used on AppVeyor

8 years agoIgnore malformed manifests on git dependencies
Fabien Antoine [Fri, 5 May 2017 09:53:56 +0000 (11:53 +0200)]
Ignore malformed manifests on git dependencies

8 years agoAuto merge of #3994 - matklad:blacklist, r=alexcrichton
bors [Thu, 4 May 2017 14:10:01 +0000 (14:10 +0000)]
Auto merge of #3994 - matklad:blacklist, r=alexcrichton

Blacklist some binary names in `cargo new`

r? @alexcrichton

closes #3990

8 years agoBlacklist some binary names in `cargo new`
Aleksey Kladov [Thu, 4 May 2017 12:23:38 +0000 (15:23 +0300)]
Blacklist some binary names in `cargo new`

8 years agoAuto merge of #3991 - alexcrichton:better-errors, r=matklad
bors [Wed, 3 May 2017 19:38:36 +0000 (19:38 +0000)]
Auto merge of #3991 - alexcrichton:better-errors, r=matklad

Improve configuration load errors

Add some more context information on the backtrace

8 years agoImprove configuration load errors
Alex Crichton [Wed, 3 May 2017 16:57:37 +0000 (09:57 -0700)]
Improve configuration load errors

Add some more context information on the backtrace

8 years agoAuto merge of #3951 - alexcrichton:lift-cdylib, r=alexcrichton
bors [Tue, 2 May 2017 18:35:07 +0000 (18:35 +0000)]
Auto merge of #3951 - alexcrichton:lift-cdylib, r=alexcrichton

Don't use `-C metadata` cdylibs like we do with dylibs

Dylibs don't get any metadata/extra filename info applied to them as "final
targets" because it can mess with system-specific information (e.g. on OSX) so
this just applies the same logic to cdylibs which need similar treatment on more
platforms (like Windows).

Closes #3934

8 years agoDon't use `-C metadata` cdylibs like we do with dylibs
Alex Crichton [Mon, 24 Apr 2017 20:41:27 +0000 (13:41 -0700)]
Don't use `-C metadata` cdylibs like we do with dylibs

Dylibs don't get any metadata/extra filename info applied to them as "final
targets" because it can mess with system-specific information (e.g. on OSX) so
this just applies the same logic to cdylibs which need similar treatment on more
platforms (like Windows).

Closes #3934

8 years agoAuto merge of #3988 - sdroege:bench-all, r=alexcrichton
bors [Tue, 2 May 2017 14:12:33 +0000 (14:12 +0000)]
Auto merge of #3988 - sdroege:bench-all, r=alexcrichton

Add support for benchmarking all members of a workspace with "bench --all"

Same behaviour as "build --all" and others.

See https://github.com/rust-lang/cargo/issues/2878#issuecomment-298302043

8 years agoAdd tests for "bench --all"
Sebastian Dröge [Tue, 2 May 2017 13:46:30 +0000 (16:46 +0300)]
Add tests for "bench --all"

These are basically the same as the ones from "test --all" and "doc --all"

8 years agoAdd support for benchmarking all members of a workspace with "bench --all"
Sebastian Dröge [Tue, 2 May 2017 13:46:01 +0000 (16:46 +0300)]
Add support for benchmarking all members of a workspace with "bench --all"

Same behaviour as "build --all" and others.

8 years agoAuto merge of #3980 - Keruspe:master, r=alexcrichton
bors [Sun, 30 Apr 2017 08:23:23 +0000 (08:23 +0000)]
Auto merge of #3980 - Keruspe:master, r=alexcrichton

update libgit2-sys for libressl compat

8 years agofix build-auth test
Marc-Antoine Perennou [Sun, 30 Apr 2017 06:51:19 +0000 (08:51 +0200)]
fix build-auth test

libgit2 somehow reverted the version back to 0.25.0 after the 0.25.1 release

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
8 years agoupdate libgit2-sys for libressl compat
Marc-Antoine Perennou [Sun, 30 Apr 2017 06:08:23 +0000 (08:08 +0200)]
update libgit2-sys for libressl compat

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
8 years agoAuto merge of #3977 - rap2hpoutre:patch-1, r=alexcrichton
bors [Sat, 29 Apr 2017 17:42:46 +0000 (17:42 +0000)]
Auto merge of #3977 - rap2hpoutre:patch-1, r=alexcrichton

Added a base font size

See https://github.com/rust-lang/crates.io/pull/689 (ping @carols10cents)

A base font size was added to crates.io, here is the same addition for docs.crate.io

8 years agoAdded a base font size
Raphaël Huchet [Sat, 29 Apr 2017 10:42:56 +0000 (12:42 +0200)]
Added a base font size

8 years agoAuto merge of #3970 - golddranks:master, r=alexcrichton
bors [Fri, 28 Apr 2017 16:26:07 +0000 (16:26 +0000)]
Auto merge of #3970 - golddranks:master, r=alexcrichton

exec (replace the current process) external subcommands instead of running them as child processes.

This fixes https://github.com/rust-lang/cargo/issues/3959 (tested to be working with my yet-to-be-published subcommand, and tested not to break things with `cargo tree` and `cargo outdated`).

8 years agoexec (replace the current process) external subommands instead of running them as...
Pyry Kontio [Fri, 28 Apr 2017 05:03:06 +0000 (14:03 +0900)]
exec (replace the current process) external subommands instead of running them as child processes.

8 years agoAuto merge of #3963 - alexcrichton:bump, r=alexcrichton
bors [Fri, 28 Apr 2017 03:12:07 +0000 (03:12 +0000)]
Auto merge of #3963 - alexcrichton:bump, r=alexcrichton

Bump to 0.20.0

8 years agoBump to 0.20.0
Alex Crichton [Thu, 27 Apr 2017 16:18:04 +0000 (09:18 -0700)]
Bump to 0.20.0

8 years agoAuto merge of #3964 - alexcrichton:update-deps, r=alexcrichton
bors [Thu, 27 Apr 2017 19:22:49 +0000 (19:22 +0000)]
Auto merge of #3964 - alexcrichton:update-deps, r=alexcrichton

Update dependencies Cargo uses

Namely update to serde 1.0.0!

8 years agoUpdate dependencies Cargo uses
Alex Crichton [Thu, 27 Apr 2017 18:37:46 +0000 (11:37 -0700)]
Update dependencies Cargo uses

Namely update to serde 1.0.0!

8 years agoAuto merge of #3961 - malbarbo:android-x86_64, r=alexcrichton
bors [Thu, 27 Apr 2017 14:48:32 +0000 (14:48 +0000)]
Auto merge of #3961 - malbarbo:android-x86_64, r=alexcrichton

Bump time (0.1.37) and libc (0.2.22)

8 years agoBump time (0.1.37) and libc (0.2.22)
Marco A L Barbosa [Thu, 27 Apr 2017 14:46:45 +0000 (11:46 -0300)]
Bump time (0.1.37) and libc (0.2.22)

8 years agoAuto merge of #3921 - alexcrichton:less-asserts, r=matklad
bors [Wed, 26 Apr 2017 20:42:15 +0000 (20:42 +0000)]
Auto merge of #3921 - alexcrichton:less-asserts, r=matklad

Relax overly strict asserts in dependency queue

Don't actually need to assert that these are unique, it works both ways and we
can have flavorful dependency graphs which otherwise trigger the assertions.

Closes #3902

8 years agoAuto merge of #3899 - alexcrichton:vendor-empty-ok, r=matklad
bors [Wed, 26 Apr 2017 15:10:04 +0000 (15:10 +0000)]
Auto merge of #3899 - alexcrichton:vendor-empty-ok, r=matklad

Support vendor dirs with "empty" directories

Looks like when vendor directories are checked into a VCS there's been instances
where deleting a folder in the VCS doesn't fully delete the folder from the
filesystem. This can lead to [spurious errors][moz] that are difficult to debug.

To help handle this tweak directory sources to ignore empty directories or
directories with only dotfiles by default.

[moz]: https://bugzilla.mozilla.org/show_bug.cgi?id=1342292

8 years agoRelax overly strict asserts in dependency queue
Alex Crichton [Thu, 13 Apr 2017 21:40:08 +0000 (14:40 -0700)]
Relax overly strict asserts in dependency queue

Don't actually need to assert that these are unique, it works both ways and we
can have flavorful dependency graphs which otherwise trigger the assertions.

Closes #3902

8 years agoAuto merge of #3955 - RReverser:update-override-docs, r=alexcrichton
bors [Wed, 26 Apr 2017 07:25:16 +0000 (07:25 +0000)]
Auto merge of #3955 - RReverser:update-override-docs, r=alexcrichton

Update documentation on overrides

 - `target.linker` does not seem to be supported anymore, only `target.$triple.linker` works, so merged these sections.
 - Added note about supported `target.$triple.ar`

8 years agoAuto merge of #3947 - matklad:bench-bench, r=alexcrichton
bors [Wed, 26 Apr 2017 05:48:11 +0000 (05:48 +0000)]
Auto merge of #3947 - matklad:bench-bench, r=alexcrichton

Allow test named `test`

Looks like `srt/test.rs` and `src/bench.rs` used to be default
integraion test and benchmark, but they no longer are.

closes #3932

8 years agoAuto merge of #3956 - jessicah:update-num-cpus-dep, r=alexcrichton
bors [Wed, 26 Apr 2017 03:32:21 +0000 (03:32 +0000)]
Auto merge of #3956 - jessicah:update-num-cpus-dep, r=alexcrichton

Update num_cpus to 1.4.0 (adds support for Haiku)

This will bring it inline with rustc: https://github.com/rust-lang/rust/pull/41552

8 years agoUpdate num_cpus to 1.4.0 (adds support for Haiku)
Jessica Hamilton [Wed, 26 Apr 2017 03:29:44 +0000 (15:29 +1200)]
Update num_cpus to 1.4.0 (adds support for Haiku)

8 years agoUpdate documentation on overrides
Ingvar Stepanyan [Wed, 26 Apr 2017 00:32:07 +0000 (01:32 +0100)]
Update documentation on overrides

 - target.linker does not seem to be supported anymore, only target.$triple.linker works, so merged these sections.
 - Added note about supported target.$triple.ar

8 years agoAuto merge of #3953 - jessicah:haiku-renaming-fix, r=alexcrichton
bors [Tue, 25 Apr 2017 15:59:59 +0000 (15:59 +0000)]
Auto merge of #3953 - jessicah:haiku-renaming-fix, r=alexcrichton

Haiku: skip renaming if filenames are the same

8 years agoHaiku: skip renaming if filenames are the same
Jessica Hamilton [Tue, 25 Apr 2017 23:15:41 +0000 (23:15 +0000)]
Haiku: skip renaming if filenames are the same

8 years agoHaiku: doesn't have SIG_SYS
Jessica Hamilton [Tue, 25 Apr 2017 16:49:09 +0000 (16:49 +0000)]
Haiku: doesn't have SIG_SYS

8 years agoHaiku: use LIBRARY_PATH in configure
Jessica Hamilton [Tue, 25 Apr 2017 16:48:26 +0000 (16:48 +0000)]
Haiku: use LIBRARY_PATH in configure

8 years agoAuto merge of #3952 - jessicah:haiku-support, r=alexcrichton
bors [Tue, 25 Apr 2017 05:36:08 +0000 (05:36 +0000)]
Auto merge of #3952 - jessicah:haiku-support, r=alexcrichton

Haiku support

8 years agoAuto merge of #3948 - alexcrichton:update-deps, r=alexcrichton
bors [Mon, 24 Apr 2017 19:11:49 +0000 (19:11 +0000)]
Auto merge of #3948 - alexcrichton:update-deps, r=alexcrichton

Update dependencies in Cargo.lock

This also fixes a few CVEs reported with libcurl and libgit2, so pulling in those updates.

8 years agoAuto merge of #3901 - BenWiederhake:all-kinds, r=alexcrichton
bors [Mon, 24 Apr 2017 17:11:58 +0000 (17:11 +0000)]
Auto merge of #3901 - BenWiederhake:all-kinds, r=alexcrichton

Implementation and CLI-support for `--all-$KIND` flags

This implements #3112.

This means all of the following commands are now possible and meaningful:
```
cargo build --all-bins
cargo build --all-tests
cargo test --all-tests
cargo test --all-bins
cargo check --all-bins --all-examples --all-tests --all-benches
```

The commits try to represent the incremental "propagation" of the new feature:
- core functionality (`cargo check --lib` passes)
- CLI suport (`cargo build` passes)
- additional tests (`cargo test` covers new functionality)

Note that `--all` is already reserved to mean "all packages of the workspace", so it can't be used to mean `--all-bins --all-examples --all-tests --all-benches`.

I intend to follow this up by some other PRs, so please do tell me where I could improve.

8 years agoUpdate dependencies in Cargo.lock
Alex Crichton [Mon, 24 Apr 2017 14:00:07 +0000 (07:00 -0700)]
Update dependencies in Cargo.lock

8 years agoAllow test named `test`
Aleksey Kladov [Mon, 24 Apr 2017 12:37:37 +0000 (15:37 +0300)]
Allow test named `test`

Looks like `srt/test.rs` and `src/bench.rs` used to be default
integraion test and benchmark, but they no longer are.

8 years agoAuto merge of #3942 - aidanhs:aphs-no-interactive, r=alexcrichton
bors [Sun, 23 Apr 2017 16:45:47 +0000 (16:45 +0000)]
Auto merge of #3942 - aidanhs:aphs-no-interactive, r=alexcrichton

Remove docker flags that can cause issues

See rust-lang/rust#39036

8 years agoRemove docker flags that can cause issues (rust-lang/rust#39036)
Aidan Hobson Sayers [Sun, 23 Apr 2017 16:08:18 +0000 (17:08 +0100)]
Remove docker flags that can cause issues (rust-lang/rust#39036)

8 years agoAuto merge of #3887 - luser:rustc-wrapper, r=alexcrichton
bors [Wed, 19 Apr 2017 02:19:25 +0000 (02:19 +0000)]
Auto merge of #3887 - luser:rustc-wrapper, r=alexcrichton

Add support for wrapping cargo's rustc invocations by setting RUSTC_WRAPPER

To use sccache for cargo builds we need a simple way to get sccache into the rustc commandline when cargo invokes rustc. Currently this is only possible by hard-linking or copying the `sccache` binary to be named `rustc` and then either setting `RUSTC` to its path or putting it first in `$PATH`, both of which are sort of clunky and require manual steps even if installing sccache via `cargo install`.

This patch adds support for a `RUSTC_WRAPPER` environment variable which, if set, will simply be inserted as the actual binary for all rustc process execution, with rustc and all other rustc arguments following.

I didn't add any tests for this, I couldn't figure out the right place to put them, and presumably we'd need to build a helper binary of some sort to use as the wrapper. If you've got suggestions for how to do that properly I'd be happy to write tests.

This works well in my local testing:
```
luser@eye7:/build/read-process-memory$ /build/cargo/target/release/cargo clean; time RUSTC_WRAPPER=/build/sccache2/target/release/sccache RUSTC=/home/luser/.rustup/toolchains/beta-x86_64-unknown-linux-gnu/bin/rustc /build/cargo/target/release/cargo build
   Compiling getopts v0.2.14
   Compiling log v0.3.6
   Compiling libc v0.2.16
   Compiling rand v0.3.14
   Compiling pulldown-cmark v0.0.3
   Compiling tempdir v0.3.5
   Compiling skeptic v0.5.0
   Compiling read-process-memory v0.1.2-pre (file:///build/read-process-memory)
    Finished dev [unoptimized + debuginfo] target(s) in 7.31 secs

real 0m7.733s
user 0m0.060s
sys 0m0.036s
luser@eye7:/build/read-process-memory$ /build/cargo/target/release/cargo clean; time RUSTC_WRAPPER=/build/sccache2/target/release/sccache RUSTC=/home/luser/.rustup/toolchains/beta-x86_64-unknown-linux-gnu/bin/rustc /build/cargo/target/release/cargo build
   Compiling getopts v0.2.14
   Compiling libc v0.2.16
   Compiling log v0.3.6
   Compiling pulldown-cmark v0.0.3
   Compiling rand v0.3.14
   Compiling tempdir v0.3.5
   Compiling skeptic v0.5.0
   Compiling read-process-memory v0.1.2-pre (file:///build/read-process-memory)
    Finished dev [unoptimized + debuginfo] target(s) in 0.97 secs

real 0m1.049s
user 0m0.060s
sys 0m0.036s
```

The use of beta rustc is just to pick up the fix for making `--emit=dep-info` faster (which should ship in 1.17). If this patch ships in cargo then in the future developers should simply be able to `cargo install sccache; export RUSTC_WRAPPER=sccache` and `cargo build` as normal, but benefit from local sccache caching.

8 years agoAuto merge of #3926 - froydnj:reenable-nightly-tests, r=alexcrichton
bors [Tue, 18 Apr 2017 13:54:28 +0000 (13:54 +0000)]
Auto merge of #3926 - froydnj:reenable-nightly-tests, r=alexcrichton

re-enable previously nightly-only tests

These tests all play nicely with Rust 1.16.

8 years agore-enable previously nightly-only tests
Nathan Froyd [Sat, 15 Apr 2017 01:55:41 +0000 (21:55 -0400)]
re-enable previously nightly-only tests

These tests all play nicely with Rust 1.16.

8 years agoAdd support for wrapping cargo's rustc invocations by setting RUSTC_WRAPPER
Ted Mielczarek [Fri, 31 Mar 2017 16:39:19 +0000 (12:39 -0400)]
Add support for wrapping cargo's rustc invocations by setting RUSTC_WRAPPER

8 years agoAuto merge of #3928 - andwur:version-not-found-error-msgs, r=alexcrichton
bors [Tue, 18 Apr 2017 06:12:37 +0000 (06:12 +0000)]
Auto merge of #3928 - andwur:version-not-found-error-msgs, r=alexcrichton

Better error message when a package version is not found

This changes the error message when a package *is* found but there's no
matching version to be a little more helpful.

Old: "no matching package named `<dep name>`"
New: "no matching version `<version>` found for package `<dep name>`"

Fixes #2997

8 years agoAuto merge of #3924 - koivunej:issue_3922, r=alexcrichton
bors [Tue, 18 Apr 2017 04:26:49 +0000 (04:26 +0000)]
Auto merge of #3924 - koivunej:issue_3922, r=alexcrichton

Adjust submodule updating failure reporting

This PR changes output of cargo when updating a dependency fails because of it's submodules cannot be loaded. In my original example this was caused by submodule pointing to a revision which was deleted by force pushing. Fixes #3922.

Before:

```
$ cargo check
    Updating git repository `<foo-url>`
error: failed to load source for a dependency on `foo`
Caused by:
  Unable to update <foo-url>?rev=hash
To learn more, run the command again with --verbose.
```

After:

```
$ cargo check
    Updating git repository `<foo-url>`
error: failed to load source for a dependency on `foo`
Caused by:
  Unable to update <foo-url>?rev=hash
Caused by:
  Failed to update submodule `submodule`
To learn more, run the command again with --verbose.
```

`--verbose` showing an additional `[9/-3] object not found - no match for id (hash)` has not been changed.

@alexcrichton since we have this nice timezone difference there was no chance of mentoring so far but any comments/suggestions are highly welcome. I'll likely check back on this next week.

8 years agoAuto merge of #3908 - froydnj:overflow-checks, r=alexcrichton
bors [Tue, 18 Apr 2017 02:52:17 +0000 (02:52 +0000)]
Auto merge of #3908 - froydnj:overflow-checks, r=alexcrichton

add `overflow-checks` field to profiles

...and pass `-C overflow-checks` to the compiler when necessary.

Fixes #2262.

8 years agoAuto merge of #3930 - alexcrichton:more-clean, r=alexcrichton
bors [Tue, 18 Apr 2017 01:16:05 +0000 (01:16 +0000)]
Auto merge of #3930 - alexcrichton:more-clean, r=alexcrichton

Clean some more env vars during tests

Will be required to run tests as part of rust-lang/rust

8 years agoClean some more env vars during tests
Alex Crichton [Tue, 18 Apr 2017 00:55:59 +0000 (17:55 -0700)]
Clean some more env vars during tests

Will be required to run tests as part of rust-lang/rust

8 years agoFix #2997: error message when version not found could be improved
Andrew Watts [Mon, 17 Apr 2017 12:24:56 +0000 (21:54 +0930)]
Fix #2997: error message when version not found could be improved

This changes the error message when a package *is* found but there's no
matching version to be a little more helpful.

Old: "no matching package named `...`"
New: "no matching version `...` found for package `...`"

8 years agogit: use lower case in error message
Joonas Koivunen [Mon, 17 Apr 2017 12:08:51 +0000 (15:08 +0300)]
git: use lower case in error message

8 years agoadd `overflow-checks` field to profiles
Nathan Froyd [Fri, 7 Apr 2017 16:32:42 +0000 (12:32 -0400)]
add `overflow-checks` field to profiles

...and pass `-C overflow-checks` to the compiler when necessary.

Fixes #2262.

8 years agostyle fixes
Joonas Koivunen [Fri, 14 Apr 2017 07:55:26 +0000 (10:55 +0300)]
style fixes

8 years agogit: adjust error on submodule update failure
Joonas Koivunen [Fri, 14 Apr 2017 05:38:55 +0000 (08:38 +0300)]
git: adjust error on submodule update failure

Now instead of reporting single generic "submodule update failed" a
dependency specific submodule update failed error message will be
reported and shown without --verbose.

8 years agogit: refactor update_submodule out of loop
Joonas Koivunen [Fri, 14 Apr 2017 05:38:36 +0000 (08:38 +0300)]
git: refactor update_submodule out of loop

8 years agoreproduce error msg in test case
Joonas Koivunen [Fri, 14 Apr 2017 03:58:02 +0000 (06:58 +0300)]
reproduce error msg in test case

8 years agoAuto merge of #3919 - malbarbo:openssl-probe, r=alexcrichton
bors [Wed, 12 Apr 2017 22:28:57 +0000 (22:28 +0000)]
Auto merge of #3919 - malbarbo:openssl-probe, r=alexcrichton

Update openssl-probe to 0.1.1

This helps find ssl certificates on termux (android).

8 years agoAuto merge of #3885 - malbarbo:android-build, r=alexcrichton
bors [Wed, 12 Apr 2017 20:24:43 +0000 (20:24 +0000)]
Auto merge of #3885 - malbarbo:android-build, r=alexcrichton

Add android build support

This add android build support, including openssl.

8 years agoUpdate openssl-probe to 0.1.1
Marco A L Barbosa [Wed, 12 Apr 2017 19:49:53 +0000 (16:49 -0300)]
Update openssl-probe to 0.1.1

8 years agoAuto merge of #3847 - SergioBenitez:master, r=alexcrichton
bors [Wed, 12 Apr 2017 19:03:16 +0000 (19:03 +0000)]
Auto merge of #3847 - SergioBenitez:master, r=alexcrichton

Always emit build script warnings for crates that fail to build

Resolves #3777.

r? @alexcrichton

8 years agoRemove android build for aarch64, arm and i686
Marco A L Barbosa [Tue, 11 Apr 2017 20:26:22 +0000 (17:26 -0300)]
Remove android build for aarch64, arm and i686

8 years agoAdd android build to travis
Marco A L Barbosa [Thu, 30 Mar 2017 23:15:48 +0000 (20:15 -0300)]
Add android build to travis

8 years agoAdd android Dockerfile
Marco A L Barbosa [Thu, 30 Mar 2017 23:08:54 +0000 (20:08 -0300)]
Add android Dockerfile

8 years agoAdd openssl build support for android
Marco A L Barbosa [Thu, 30 Mar 2017 23:06:54 +0000 (20:06 -0300)]
Add openssl build support for android

8 years agoAuto merge of #3914 - jwilm:specifying-dependencies-replace-note, r=alexcrichton
bors [Mon, 10 Apr 2017 20:40:50 +0000 (20:40 +0000)]
Auto merge of #3914 - jwilm:specifying-dependencies-replace-note, r=alexcrichton

Add note about Cargo.lock behavior with [replace]

The Cargo.lock behavior when using [replace] can be misleading if one
does not expect multiple versions of the crate to be included. This note
is intended to assure users that this behavior is expected, and it
suggests a way to verify their `[replace]` override is preferred.

I ran into this issue and ended up bugging @alexcrichton about it. Hopefully including this will reduce the support burden on cargo devs :smile:.

8 years agoAdd note about Cargo.lock behavior with [replace]
Joe Wilm [Mon, 10 Apr 2017 20:24:31 +0000 (13:24 -0700)]
Add note about Cargo.lock behavior with [replace]

The Cargo.lock behavior when using [replace] can be misleading if one
does not expect multiple versions of the crate to be included. This note
is intended to assure users that this behavior is expected, and it
suggests a way to verify their `[replace]` override is preferred.

8 years agoAllKinds tests: interoperability with '--all'
Ben Wiederhake [Mon, 10 Apr 2017 18:18:08 +0000 (20:18 +0200)]
AllKinds tests: interoperability with '--all'

8 years agoAllKinds tests: cargo-test
Ben Wiederhake [Wed, 5 Apr 2017 19:48:15 +0000 (21:48 +0200)]
AllKinds tests: cargo-test

8 years agoAllKinds tests: cargo-bench, cargo-build
Ben Wiederhake [Wed, 5 Apr 2017 18:50:22 +0000 (20:50 +0200)]
AllKinds tests: cargo-bench, cargo-build

8 years agoAllKinds tests: cargo-run
Ben Wiederhake [Fri, 24 Mar 2017 20:20:38 +0000 (21:20 +0100)]
AllKinds tests: cargo-run

8 years agoAsk for filter specifity instead of 'match'
Ben Wiederhake [Fri, 24 Mar 2017 21:21:29 +0000 (22:21 +0100)]
Ask for filter specifity instead of 'match'

8 years agoAdapt binaries to new cargo_compile API
Ben Wiederhake [Fri, 24 Mar 2017 08:28:35 +0000 (09:28 +0100)]
Adapt binaries to new cargo_compile API

Closes #3112.

8 years agoExtend Compile API to handle flags like --tests and --bins
Ben Wiederhake [Thu, 23 Mar 2017 22:45:23 +0000 (23:45 +0100)]
Extend Compile API to handle flags like --tests and --bins

8 years agoAuto merge of #3909 - JanLikar:fix/3876, r=alexcrichton
bors [Mon, 10 Apr 2017 14:42:41 +0000 (14:42 +0000)]
Auto merge of #3909 - JanLikar:fix/3876, r=alexcrichton

Improve "dirty" error message

Improve the error message stating the working directory has dirty files (files not yet committed).

Fix #3876.

8 years agoImprove "dirty" error message
Jan Likar [Sun, 9 Apr 2017 02:20:41 +0000 (04:20 +0200)]
Improve "dirty" error message

Improve the error message stating the working directory has dirty
files (files not yet committed).

Fix #3876.

8 years agoAlways emit build script warnings for crates that fail to build
Sergio Benitez [Sun, 19 Mar 2017 02:33:09 +0000 (19:33 -0700)]
Always emit build script warnings for crates that fail to build

Resolves #3777

8 years agoAuto merge of #3907 - waywardmonkeys:show-default-new, r=alexcrichton
bors [Sat, 8 Apr 2017 23:07:02 +0000 (23:07 +0000)]
Auto merge of #3907 - waywardmonkeys:show-default-new, r=alexcrichton

Indicate that --lib is default for new, init.

I often forget for a moment which is the default behavior: `--bin` or `--lib`. This makes it clear in the usage text.

8 years agoAuto merge of #3904 - tee-too:fix-3880, r=alexcrichton
bors [Sat, 8 Apr 2017 21:29:11 +0000 (21:29 +0000)]
Auto merge of #3904 - tee-too:fix-3880, r=alexcrichton

Sort tests so that unit tests are run before integration tests

Fix #3880

8 years agoAuto merge of #3906 - waywardmonkeys:typo-fixes, r=alexcrichton
bors [Sat, 8 Apr 2017 19:53:03 +0000 (19:53 +0000)]
Auto merge of #3906 - waywardmonkeys:typo-fixes, r=alexcrichton

Fix typos.

8 years agoIndicate that --lib is default for new, init.
Bruce Mitchener [Fri, 7 Apr 2017 09:37:34 +0000 (16:37 +0700)]
Indicate that --lib is default for new, init.

8 years agoFix typos.
Bruce Mitchener [Fri, 7 Apr 2017 09:32:11 +0000 (16:32 +0700)]
Fix typos.

8 years agoSort tests so that unit tests are run before integration tests
tee-too [Thu, 6 Apr 2017 14:18:07 +0000 (16:18 +0200)]
Sort tests so that unit tests are run before integration tests

Fix #3880

8 years agoAuto merge of #3898 - jmatraszek:fix_rust_40955, r=alexcrichton
bors [Wed, 5 Apr 2017 23:36:04 +0000 (23:36 +0000)]
Auto merge of #3898 - jmatraszek:fix_rust_40955, r=alexcrichton

Fix rust-lang/rust 40955

Proposed fix for rust-lang/rust#40955.

I could also work on adding some additional tests, so we have all cases covered and automatically tested.